package com.lanyun.pojo;/**
 * @author zhy
 * @date 2021/1/6 - 13:10
 */

/**

 @ClassName Function
 @Description xxx
 @Author zhy
 @Date 2021/1/6 - 13:10
 @Version 1.0
 **/
public class Function {
    private Integer fid;//----功能id

    private String name;//----功能名

    private String url;//----功能访问路径

    private Privilege privilege;//----该功能对应的权限


    public Function() {
    }

    public Function(Integer fid, String name, String url, Privilege privilege) {
        this.fid = fid;
        this.name = name;
        this.url = url;
        this.privilege = privilege;
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Privilege getPrivilege() {
        return privilege;
    }

    public void setPrivilege(Privilege privilege) {
        this.privilege = privilege;
    }

    @Override
    public String toString() {
        return "Function{" +
                "fid=" + fid +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", privilege=" + privilege +
                '}';
    }
}
